<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div><a th:href="@{/toAdd}">添加</a></div>
<table border="1" >
    <tr>
        <td>编号</td>
        <td>学生姓名</td>
        <td>学生年龄</td>
        <td>出生日期</td>
        <td>操作</td>
    </tr>
    <tbody>
    <tr th:each="item:${student}">
        <td th:text="${item.id}"></td>
        <td th:text="${item.name}"></td>
        <td th:text="${item.age}"></td>
        <td th:text="${#dates.format(item.birthday,'yyyy-MM-dd')}"></td>
        <td>
            <a th:href="@{/findById/{id}(id=${item.id})}">修改</a>
            <a th:href="@{/delete/{id}(id=${item.id})}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</body>
</html>